//
//  NewsListModel.m
//  News
//
//  Created by Han on 15-4-17.
//  Copyright (c) 2015年 IPingLun. All rights reserved.
//

#import "NewsListModel.h"

@implementation NewsListModel

// 属性变量转码
-(void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.dataList   forKey:@"dataList"];
    [aCoder encodeFloat :self.updateTime forKey:@"updateTime"];
}


// 属性变量根据关键字进行逆转码，最后返回对象
-(id)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super init]) {
        self.dataList   = [aDecoder decodeObjectForKey:@"dataList"];
        self.updateTime = [aDecoder decodeFloatForKey:@"updateTime"];
    }
    return self;
}

@end
